// initial state
const state = () => ({
  isShowLoading: false
})

// getters
const getters = {}

// actions
const actions = {
  setLoadingStatus({ commit }, loadingStatus) {
    commit('SET_LOADING_STATUS', loadingStatus)
  }
}

// mutations
const mutations = {
  SET_LOADING_STATUS(state, loadingStatus) {
    state.isShowLoading = loadingStatus
  }
}

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations
}
